//
//  UIControl+AddProperty.m
//  WorldFusionClient_iOS
//
//  Created by Kelly xu on 2018/10/2.
//  Copyright © 2018年 Nie Peng Peng. All rights reserved.
//

#import "UIControl+AddProperty.h"
static const void *sectionBy = &sectionBy;
static const void *btnIndexBy = &btnIndexBy;
@implementation UIControl (AddProperty)
@dynamic section;
@dynamic btnIndex;
-(void)setSection:(NSString *)section{
    objc_setAssociatedObject(self, sectionBy, section, OBJC_ASSOCIATION_COPY_NONATOMIC);
}
-(NSString*)section{
    return objc_getAssociatedObject(self, sectionBy);
}
-(void)setBtnIndex:(NSString *)btnIndex{
    objc_setAssociatedObject(self, btnIndexBy, btnIndex, OBJC_ASSOCIATION_COPY_NONATOMIC);
}
-(NSString*)btnIndex{
    return objc_getAssociatedObject(self, btnIndexBy);
}

@end
